//
//  Theme.swift
//  SwiftuiUno
//
//  Created by hccc on 2023/11/21.
//

import Foundation
import SwiftUI

public class Theme {
    public static let color = ThemeColor()
    public static let font = ThemeFont()
    public static let icon = ThemeIcon()
}

public class ThemeIcon {
    public var backButton = Image(systemName: "arrow.backward")
    
}

public class ThemeColor: ObservableObject {
    @Published public var primaryBackgroundColor: Color = .backgroundColor
    /// 主文本色, #333333
    public var backgroundColor: Color = .hex(0x01000C)
    /// 输入框背景色
    public var textfieldBackgroundColor: Color = .hex(0x2B2846)
    
    public var primaryA: Color = .hex(0xFFDF66)
    public var primaryB: Color = .hex(0x203A43)
    public var primaryC: Color = .hex(0xFF12D7)
    
    
    /// 主文本色, #333333
    public var title: Color = .white
    /// #666666
    public var text: Color = .hex(0x5E5D71)
    
    /// 子标题, 0x6D6E73
    public var subTitle: Color = .hex(0x6D6E73)
    
    /// 子文本, #999999
    public var subText: Color = .hex(0x999999)
    
    /// 占位符颜色 #DDDDDD
    public var placeholder: Color = .hex(0xF9F9F9)
    
    /// 背景色 0xF6F6F6
    public var emptyBackground: Color = .hex(0xF6F6F6)
    
    /// 渐变色淡 0xFFC12E
    public var customOrangeShallow: Color = .hex(0xFFC12E)
    
    /// 主色 0xFE741D
    public var customOrange: Color = .hex(0xFE741D)
    
}

public class ThemeFont {
    public let title: Font = .system(size: 16)
    public let text: Font = .system(size: 14)
}


